package com.clps.rulesregulations.service;

import com.clps.rulesregulations.domain.Dept;
import com.clps.rulesregulations.util.ResourceTree;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 资源逻辑接口
 *
 */
public interface DeptService {
    PageInfo<Dept> findDeptsByPage(Map<String, Object> map);

    List<Dept> findAll();

    List<Dept> loadUserDepts(Map<String, Object> map);

    List<Dept> findDeptsByRoleId(Integer roleId);

    void addDept(Dept dept);

    void delDept(Integer deptId);

    void deleteAll(String[] ArrayDATA_IDS);

    Dept findDeptById(Integer deptId);

    Dept findDeptByUrl(String url);

    void updateDept(Dept dept);

    List<ResourceTree> findAllAsTree();

    List<Dept> selectAll();

//    List<DeptTree> findMenuTree();
}
